﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucGetByCate.ascx.cs" Inherits="TTMarketing.UserControl.SanPham.ucGetByCate" %>
<table width="100%">
    <tr>
        <td>
        
<asp:ObjectDataSource ID="odsNews" runat="server" SelectMethod="Product_getByCate" 
    TypeName="TTBusiness.ClassProject.clsBSBusiness">
    <SelectParameters>
        <asp:QueryStringParameter Name="cate" QueryStringField="cateid" Type="Int32" />
    </SelectParameters>
</asp:ObjectDataSource>
<telerik:RadListView ID="RadListView1" runat="server" DataSourceID="odsNews" 
    BorderWidth="0px" ItemPlaceholderID="ph" AllowPaging="True" PageSize="15" 
    Width="100%">
    <LayoutTemplate>
        <asp:PlaceHolder runat="server" id="ph" />
    </LayoutTemplate>
    <ItemTemplate>
         <table width="100%" id="Product-l">
            <tr>
                <td align="center">
                <a href="?id=<%# Eval("ID") %>">
                <img src='<%# "/Image/Upload/" +Eval("Image") %>' height="100px" width="100px" />
                </a>
                   <%-- <asp:ImageButton ID="ImageButton1" runat="server" Height="100px" 
                        ImageUrl='' 
                        PostBackUrl='<%# "?id="+Eval("ID") %>' Width="100px" />--%>
                </td>
            </tr>
            <tr>
                <td align="center" style="height:51px;">
                    <a href='<%# "?id="+Eval("ID") %>'>
                    <%# Eval("Name") %>
                    </a><br />
                    <asp:Label ID="Label4" runat="server" 
                    
                        Text='<%# "( "+ Eval("SeriNumber")  +" )"%>'></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="center" valign="top" style="height:60px" >
                    <%# Eval("Summary").ToString().Length > 60 ? Eval("Summary").ToString().Substring(0, 59)+"..." : Eval("Summary").ToString()%>
                </td>
            </tr>
        </table>
    </ItemTemplate>
    <EmptyDataTemplate>
        <div class="RadListView RadListView_Default">
            <div class="rlvEmpty">
                Dữ liệu đang cập nhật</div>
        </div>
    </EmptyDataTemplate>
    
</telerik:RadListView>
</td>
    </tr>
    <tr>
        <td>
        
<div id="pageing">
<telerik:RadDataPager ID="RadDataPager1" runat="server" 
    PagedControlID="RadListView1" BackColor="White" BorderStyle="None" 
    PageSize="20" Skin="Sitefinity" Width="90%">
    <Fields>
        <telerik:RadDataPagerSliderField />
        <telerik:RadDataPagerPageSizeField />
    </Fields>
</telerik:RadDataPager>
</div></td>
    </tr></table>